﻿using System.ServiceModel;
using System.ServiceModel.Web;

using NiggleAmp.DAP;

namespace NiggleAmp.Web.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITypesHandler" in both code and config file together.
    [ServiceContract]
    public interface ITypesHandler
    {
        [OperationContract]
        [WebGet(UriTemplate = "{instanceId}", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
        NAmpType[] ListFor(string instanceId);

        [OperationContract]
        [WebGet(UriTemplate = "{instanceId}/{typeId}", ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Bare)]
        NAmpTypeDetail DetailOf(string instanceId, string typeId);
    }
}
